package com.zgm.ch04.applicationContext._9_4_2;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class AnnotationDemo2 {

	public static void main(String[] args){
		ApplicationContext ac = new ClassPathXmlApplicationContext("com/zgm/ch04/applicationContext/_9_4_2/_9_4_2-context.xml");
		
		String[] beanNames = ac.getBeanDefinitionNames();
		
		for(String beanName : beanNames){
			System.out.println("Bean名称" + beanName + " : " + ac.getBean(beanName));
		}
	}
}
